// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router' // 路由列表
import iView from 'iview';
import 'iview/dist/styles/iview.css'; // 使用 CSS

Vue.config.productionTip = false
Vue.use(iView);



// router.beforeEach((to, from, next) => {
//     debugger
//     if (to.meta.hideF) {
//         from.meta.show = false;
//         next();
//     } else if (!to.meta.show) {
//         to.meta.show = !to.meta.show
//     }
// })

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})